package com.fary.controller;

import com.fary.hystrix.MyHystrixCommand;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Fary
 * @version 1.0
 * @description: TODO
 * @date 2021/9/4 16:21
 */
@RestController
public class HystrixController {

    @GetMapping("/testHystrix")
    public String testHystrix() {
        String result = new MyHystrixCommand("zhangsan").execute();
        System.out.println(result);
        return result;
    }
}
